package com.pro.service.imple;

import com.pro.mapper.JsAuditLogMapper;
import com.pro.pojo.JsAuditLog;
import com.pro.service.JsAuditLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * ClassName:JsAuditLogServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2022/1/15 11:37
 * @Author: ZPT
 */
@Service
public class JsAuditLogServiceImple implements JsAuditLogService {
    @Autowired(required = false)
    private JsAuditLogMapper auditLogMapper;
    /**
     *
     * @author ZPT
     * @date 2022/1/15 11:42
     * @content :查询审核日志数据
     */
    public List<JsAuditLog> getAuditLog(String trueName, Integer aduitLogType, String createDate){
        return auditLogMapper.getAuditLog(trueName,aduitLogType,createDate);
    }

    /**
     *
     * @author ZPT
     * @date 2022/1/15 13:38
     * @content :添加审核日志
     */
    public Boolean addAuditLog(JsAuditLog auditLog) {
        auditLog.setCreateDate(new Date());
        return auditLogMapper.addAuditLog(auditLog);
    }
}
